﻿using System.ComponentModel.DataAnnotations;
using K9Nano.DataAnnotations;

namespace K9Nano.Application.MultiTenancy
{
    public class TenantEditInput
    {
        /// <summary>
        /// 租户名称，唯一性标识
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        [GuidRequired]
        public string Id { get; set; }

        /// <summary>
        /// 租户显示名称
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(200)]
        public string DisplayName { get; set; }

        /// <summary>
        /// 租户版本ID
        /// </summary>
        public int EditionId { get; set; }

        /// <summary>
        /// 租户Logo
        /// </summary>
        public string LogoUrl { get; set; }
    }
}